package com.briup.cms.service;

import com.briup.cms.bean.Comment;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

public interface ICommentService {
    //查看评论审核状态
    void checkComment(int id, int status) throws CustomerException;

    // 分页查询所有评论
    PageInfo<Comment> pageQuery(int pageNum, int pageSize, String keywords);

    // 通过id删除评论
    void deleteById(int id) throws CustomerException;

    // 批量删除评论
    void batchDelete(int[] ids) throws CustomerException;
    //保存更新
    void saveOrUpdate(Comment comment);

}
